<template>
	<view class="container">
		<view class="card">
			<view class="title">{{data.title}}</view>
			<rich-text class="richText" :nodes="data.prmk"></rich-text>
			<image class="ma" :src="data.qrcode" mode=""></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {}
			}
		},
		onLoad(options) {
			this.data = JSON.parse(decodeURIComponent(options.item))
		},
		methods: {}
	}
</script>
<style>
	page {
		background-color: #f5f5f5;
	}
</style>
<style lang="scss" scoped>
	.container {
		padding: 50rpx;

		.card {
			padding: 40rpx;
			background: #fff;
			border-radius: 10rpx;

			.title {
				font-size: 36rpx;
				color: #333;
				font-weight: bold;
				margin-bottom: 20rpx;
			}

			.richText {
				font-size: 28rpx;
				color: #666;
				text-align: justify;
				line-height: 50rpx;
			}
			.ma {
				display: block;
				margin: 50rpx auto 0;
				width: 460rpx;
				height: 460rpx;
			}
		}
	}
</style>
